package com.dao;

import com.entity.system.Order;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderMapper {
    int deleteByPrimaryKey(@Param("id") Long id, @Param("createTime") Date createTime);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(@Param("id") Long id, @Param("createTime") Date createTime);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    List<Order> findOrderByUser(Map<String,Object> map);

    BigDecimal findSumDealPriceByUserId(List<Long> ids);

    /**
     * 订单列表
     * @param map
     * @return
     */
    List<Order> fundOrderList(Map<String,String> map);

    List<Order> findOrderList(Map<String, Object> map);
}